package demo5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:张熳
 * Date:2025-08-24
 * Time:17:18
 */
//继承
//组合

//组合没有涉及像继承那样的特殊语法（如extends等关键字），组合仅仅将一个类的实例作为另外一个类的字段
public class School {
    public Student[] students = new Student[10];
    public Teacher[] teachers = new Teacher[10];
}
